<html>
  <body>

    <div id="test" onclick="()=>{}">
      ddddd
    </div>
  </body>
  <script>
   const dom =  document.getElementById('test')
   dom.addEventListener('click',()=>{
    console.log(111)
   })
  </script>
</html>